package yaty.lee.study.timertask;

import java.util.Timer;

public class TimerTask {
    public static void main(String[] args) {
        Timer timer = new Timer();
        timer.schedule(new TimerTaskTest(), 1000, 2000);
    }
}

class TimerTaskTest extends java.util.TimerTask {

    @Override
    public void run() {
        System.out.println("start");
    }

}
